function create_updated_collection(collection_a, object_b) {
  //在这里写入代码
  let arr = object_b.value;
  for(let item of collection_a){
    for(let n of arr){
      if(item.key == n){
        item.count=item.count-parseInt(item.count/3);
      }
    }
  }
  return collection_a;
}

module.exports = create_updated_collection;
